home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / alg.doc < prev    next >
Text File  |  1995-03-31  |  2KB  |  48 lines

  1. (Comp.sys.handhelds) Option:  
  2. Item: 924 by cloos at acsu.buffalo.edu 
  3. Author: [James H. Cloos] 
  4.   Subj: Re: ->PRG & PRG-> RPL Versions 
  5.   Keyw:  
  6.   Date: Thu Oct 18 1990 12:02  
  7.  Lines: 51 
  8.  
  9. In article <8979@helios.TAMU.EDU> Rick Grevelle posts the 2 programs 
  10. \->PRG and PRG\->.  He also mentions the addresses of routines to do 
  11. \->ALG, plus that the routine used to do PRG\-> also will break up an 
  12. algebraic or a list.  We already have LIST\-> and \->LIST, he gave us 
  13. PRG\-> anmd \->PRG, so here, based on his routines (to check for args, 
  14. etc.) are ALG\-> and \->ALG. 
  15.  
  16. These routines work exactly like those Rick posted; the decomp is: 
  17.  
  18. ALG\-> 
  19. 02D9D   :    :: 
  20. 18AB2   :    need one arg from stack 
  21. 18FB2   :    check one argument for following type 
  22. 04049   :    <9h> 
  23. 1C973   :    program->, algebraic->, list-> 
  24. 0312B   :    ; 
  25.  
  26. \->ALG 
  27. 029D9   :    :: 
  28. 18C34   :    need % n arguments from stack {% n == real_n} 
  29. 0546D   :    ->algebraic 
  30. 0312B   :    ; 
  31.  
  32. Now, in the start of his article, he listed 0x054AF as the address of 
  33. the alg,list,prg-> routine, but used 0x1C973 in his programs.  I used 
  34. the 0x1C973 as I didn't notice this at first; it does work, though, 
  35. with algebraics. 
  36.  
  37. With these, you can easily convert between algebraic and rpn display 
  38. formats; this could be helpful in understanding rpn if you don't 
  39. already. 
  40.  
  41. (Please backup before playing with, just in case.) 
  42.  
  43. -JimC 
  44. -- 
  45. James H. Cloos, Jr.         Phone:  +1 716 673-1250 
  46. cloos@ACSU.Buffalo.EDU      Snail:  PersonalZipCode:  14048-0772, 
  47. cloos@ub.UUCP 
  48.